from django.urls import re_pathfrom products import viewsapp_name = 'product'urlpatterns = [    re_path('(?P<slug>[\w-]+)/$',views.single, name='single_product'),    re_path(r'^$', views.all, name='products'),]